package dome4;

final class Apple extends Fruit {
    public Apple(String name) {
        super(name);
    }

    // 不允许被重写的方法
    @Override
    public final void taste() {
        System.out.println(name + "的味道是甜的");
    }
}

